#!/usr/bin/python
# -*- encoding: utf-8 -*-
'''
@File    :   3.py
@Time    :   2020/03/15 21:30:57
@Author  :   Malygos_l 
@Version :   1.0
@Contact :   751756061@qq.com
@WebSite :   www.gitee.com/malygos_l
'''
# Start typing your code from here
# 编写一个函数, 传入一个数字列表, 输出列表中的奇数;
# 数字列表请用随机数函数生成

from random import randint

def odd(list):
    for a in filter(lambda x: x%2 == 1,list):
        print(a,end=" ")

list=[randint(0,20) for _ in range(0,5)]
odd(list)